package com.zxy.paycenter.common.message.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 商品信息(请求model)
 *
 * @author 周徐阳
 * @date 2019.07.26
 */
@Data
@ApiModel(value = "交易商品请求model")
public class CommodityReq implements Serializable {
    @ApiModelProperty(value = "用户支付宝签约码")
    private String agreementNo;
    @ApiModelProperty(value = "商品Id", example = "123456789")
    private String productId;
    @ApiModelProperty(value = "订单名称", example = "武汉地铁一卡通", required = true)
    private String subject;
    @ApiModelProperty(value = "商品描述", example = "商品描述", required = true)
    private String body;
    @ApiModelProperty(value = "总金额(单位是分)", example = "12345678", required = true)
    private String totalFee;
    @ApiModelProperty(value = "商户订单号(唯一)", example = "123456789", required = true)
    private String outTradeNo;
    @ApiModelProperty(value = "发起人ip地址", example = "127.0.0.1")
    private String spbillCreateIp;
    @ApiModelProperty(value = "附件数据主要用于商户携带订单的自定义数据", example = "111")
    private String attach;
    @ApiModelProperty(value = "支付类型(1:支付宝 2:微信 3:银联)", example = "1", required = true)
    private Short payType;
    @ApiModelProperty(value = "支付方式(1:PC,2:平板,3:手机)")
    private Short payWay;
    @ApiModelProperty(value = "前台回调地址  非扫码支付使用")
    private String frontUrl;
    @ApiModelProperty(value = "商户额外回调地址")
    private String exceptionNotifyUrl;
    @ApiModelProperty(value = "额外前台回调地址")
    private String exceptionReturnUrl;
}
